#coding=gbk
import pygame
import math
import random
import ImageHelper
from pygame.locals import *
import GameData
from GameUnit import *
import AIData

class Tank(MovableUnit):
    """ Tank Object """
    hp_full = AIData.HP_TANK
    cost = AIData.COST_TANK
    guid = GameData.GUID_TANK
    time_cost = AIData.TCOST_TANK
    gwidth = 3
    gwidth = 3

    def __init__(self, battle, gpos, belongto=0):
        MovableUnit.__init__(self, battle, gpos, belongto)

        self.original_image = self.image
        self.rect = self.image.get_rect()
        self.rect = self.rect.move(self.pos)
        self.hp_now = 100
        self.unittype = GameUnit.PLAYER_TROOPS
 
    @staticmethod
    def loadimages():
        Tank.images = ImageHelper.load_imagelist('mtank_1_0.png', 'mtank_1_1.png', 'mtank_1_2.png',
                                                 'mtank_1_3.png', 'mtank_1_4.png', 'mtank_1_5.png',
                                                 'mtank_1_6.png', 'mtank_1_7.png')






